﻿package mvc.controller {
	import mvc.model.MouseProxy;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.as3.multicore.patterns.observer.Notification;
    
	public class MouseDownCommand extends SimpleCommand {
		
		override public function execute(note:INotification):void {
			var mouseProxy:MouseProxy = facade.retrieveProxy(MouseProxy.NAME) as MouseProxy;
			mouseProxy.x = note.getBody().x;
			mouseProxy.y = note.getBody().y;
		}
	}
}